Repository navigation
fix(approvals): the approval request page names the record it decides on, Approve leads the band, one time face - #36095
Conversation
…one time face Claude-Session: https://claude.ai/code/session_01L6bhgW5RH2VUXjRj9dZYH2 Co-authored-by: Claude <noreply@anthropic.com>
…nd the timeline's time face Claude-Session: https://claude.ai/code/session_01L6bhgW5RH2VUXjRj9dZYH2 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgW5RH2VUXjRj9dZYH2 Co-authored-by: Claude <noreply@anthropic.com>
…block Claude-Session: https://claude.ai/code/session_01L6bhgW5RH2VUXjRj9dZYH2 Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift Check1 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run. What this run could not see
Coarse fallback — 6 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 9316e03950f749d075b6ed1659492ae1919a6eaa && git checkout 9316e03950f749d075b6ed1659492ae1919a6eaa
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 493ad095d40ece94fe25d822566138fd01f5d4c3 88775b7e5bcf30d1177ec6e94f51e8f121c5ad20 && git checkout -B drift-repro 493ad095d40ece94fe25d822566138fd01f5d4c3 && git merge --no-ff 88775b7e5bcf30d1177ec6e94f51e8f121c5ad20
node scripts/docs-audit/affected-docs.mjs --json 493ad095d40ece94fe25d822566138fd01f5d4c3 |
…the page read it The approval request page's title named the subject record and linked to it whatever the page's own read of that record answered, so a refused (403) or platform-deleted subject still drew a link in the H1 while the record card on the same page drew none (objectui#11878, objectui#12489, objectui#12557 pins). The title now links only once one of the page's reads returned the record: `SubmittedRecord`'s current read and `RecordPreviewCard`'s read report what they found through `RecordReadReportContext`, which `RecordDetailView` provides on an approval request's page only. The title makes no read itself. A refused, unresolvable or deleted subject is named as plain text. The served-page pins that read the H1 as the flow label, or counted one link to the subject on the page, now read the subject's title and count the card's link and the H1's; the refused and deleted pins also check the H1 is plain. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgW5RH2VUXjRj9dZYH2
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Posted 2026-11-21T14:32Z. The brief handed to the isolated declaration-face reviewer for PR #36095 (owed by the PR body's Contract review brief — PR #36095 @
|
|
repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U 席位核对 — ACCEPT (L1-a)维护者速读审批请求页这次改了三处:
我核过以下几点:
没有需要修的问题,不属于受管面。因为对外新增了一个可选字段,座位还要在同一版本上跑一次 L2,本记录不替代它。 Head reviewed: What holds
Observation (no change asked)
Landing terms
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: Inputs read: card #35415 (body, triage 7004294600, claim 7060828003), epic #34571 and merged #35983 (bodies), the PR #36095 body and file list (21 files), the net diff against its merge base with ① Derived judgmentsThe changes to the public surface and the accept set that the diff implies, each judged:
② Semver level
③ Boundary flagsThe PR body has no
Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Seat landing · 2026-11-21T14:37Z · #35415 the approval request page (epic #34571, b1-CX segment 4). The page's title names the record it decides on, and is a link only after the page's own read returned that record (a refused or deleted record keeps a plain title, per #11878 / #12489 / #12557); Approve leads the approver's band with Reject as a danger outline; one compact time format in the host's time zone. Card item 1's flow-name subtitle is not added, as the claim 7060828003 said: the flow is named once in the strip under the title; a literal subtitle is a small follow-up if the maintainer wants it. Seat declaration L2 PASS 7064222154 on |
Requested by Sales · project thread
Fixes #35415
repo:objectstack#1 · os-sales · session_01L6bhgW5RH2VUXjRj9dZYH2
Clause-②: yes (widening)
Metadata-protocol: none
The widening:
@object-ui/componentstakes one optional member,RecordHeaderState.title, and exports its typeRecordHeaderTitle. Nothing is removed or renamed.维护者速读
2026/11/21 上午10:09),不再带秒。What changes
Card #35415 lists four defects on the approval request page. Read against main
fe753492, two still held, one held in part, and one was already fixed:RecordDetailView, newapproval-decision/approvalSubjectTitle.tsx). On asys_approval_requestpage the header names the business record by therecord_titlethe approvals get already serves for it, as a link through the page's own record route (RelatedRecordActionsBridge'srecordHref/openRecord, the route the "As submitted" card's "Open record" link takes). A plain click opens the record the way the page opens one, which is the record drawer one level down on a desktop record page; a modifier or middle click keeps the anchor's new-tab behaviour. The name is a link only once one of the page's own reads of the record returned it, the rule the card's link follows (objectui#12557, objectui#11878):SubmittedRecord's current read andRecordPreviewCard's read report what they found through the newRecordReadReportContext(approval-decision/recordReadReport.ts), whichRecordDetailViewprovides on a request page only. The title makes no read of its own. A refused, unresolvable or platform-deleted subject is named as plain text. Where the get serves norecord_title, or one equal to the barerecord_id, the header keeps the request's own title (process_label), so the page never names its subject by a raw id. That is the guarantee plugin-approvals: the served approval request page's H1 still readsflow:NAME · RECORD_ID— the approvals get serves nodisplay_title, and the title names the raw record id (blocks objectui#12484) #24665 / PR fix(plugin-approvals): an approval request is titled by its flow's label, never the raw record id or the flow's machine name #24708 gave the H1, kept here.RecordHeaderState.title(@object-ui/components). The host hands{ text, node? }, andpage:headerdrawsnode(elsetext) in its H1 in both faces: in the host's top bar and in its own row (phone, and pages with no bar). Absent, or with an emptytext, every title rung the header had is unchanged. It sits beside the state's existingtags,groupandstage.DeclaredActionsBar). In the approver's band (foldDecisions, drawn by the request page's panel and by the business record page's band), a declareddangerdecision is drawn as an outline button in the destructive text colour. That is the face the record header's group already gives a secondary danger lever (记录页头部压成一行;只有一组按钮,随记录状态换内容(等我审批时是通过、拒绝);审批状态只留一个短标签 #35593), and the two now share one condition (secondaryDanger). Approve keeps the filled primary face. A bar that does not fold keeps the declared filled danger face, and overrides keep their amber face.ApprovalActionTimeline). Action times render through core'sformatDateTime(…, { style: 'compact' }), the face everydatetimecell and the strip'supdated_atchip draw, in the host's display time zone. They used to be the browser'stoLocaleString(seconds, a 24-hour clock under zh-CN). The timeline on a business record page's approvals panel is the same component, so it changes too.plugin-approvals: comments only, insys-approval-request.object.tsandsys-approval-request.page.ts, saying where the request page now names its record. The object'snameField,highlightFieldsand the page metadata are unchanged.Not changed, per the card's "不做的": the structure of the progress and timeline cards.
Why
An approver opens a request to decide on a business record. The page was titled by the process, which the strip repeated, and the record it is about had no name in the header and no link from it. The reject button outweighed approve, and the page wrote one moment in two ways.
Verification
Tests added (each run red with its fix ablated, green with it):
approvalSubjectTitle.test.tsx(new): read by the page, the title links through the host route; not read, plain text; a host that routes nowhere, plain text; a plain click is the host'sopenRecord, a modifier click the browser's; no title or an id-only title keeps the page's own. Ablating the read gate reds the not-read case.servedPageRecordLink-12557gains an H1 case (the H1 reads the subject and its plain click opens the same drawer, the page stays put) and the readable case now counts the card's link and the H1's; its refused CONTROL also checks the H1 is plainINV-2020.servedPageReferenceStates-12489: readable names and links the H1; deleted names it as plainINV-3030.ApprovalsInboxPage.opensServedPage-12484: the served page is recognised by the subject's title in its H1. Ablating the read gate reds the refused CONTROL; ablating the report provider reds the two H1-link cases.RecordDetailView.harness.test.tsx, blockRecordDetailView.approvalSubjectTitle-35415(realRecordDetailView, realpage:header, desktop top bar): the H1 reads the served subject title, and with no reader of the subject on that page it links nowhere and reads nothing; norecord_titlekeeps the flow label with no link; arecord_titleequal to the record id keeps the flow label and never prints the id; CONTROL: another object with the same fields keeps its own title. Ablating the host wiring reds the subject case only.page-header-record-bar-35593.test.tsx, blockthe record state's title (objectstack#35415): the host's node is drawn inside the H1 in the bar and in the row; text-only; CONTROL: an empty title leaves the record's own name. Ablating the renderer reds the three host cases.DeclaredActionsBar.approverFold-34361.test.tsx, block…leads with a filled Approve, Reject outlined (objectstack#35415): Approvebg-primary, Reject outline withtext-destructiveand nobg-destructive; CONTROL: a bar that does not fold keepsbg-destructive.RecordApprovalsPanel.displayLocale-9909.test.tsx: the de-DE and en pins now read the compact face (4.3.2020 3:30 pm,3/4/2020 3:30 pm), and a new zh-CN pin equalsformatDateTime(…, { style: 'compact' })with no seconds. The three "is a reading of the session" pins are unchanged and green.Local runs on this head (
88775b7e, main493ad095merged in, so #35983's two-row record header is in):ui/root, on this head: every ui test file that names an approval request,DeclaredActionsBar,ApprovalActionTimeline,RecordHeaderState,RecordPreviewCard,SubmittedRecord, the record pointer card,RecordDetailView,ApprovalDecisionPanelorpage:header(490 files, console included):Test Files 490 passed,Tests 6483 passed. The first CI run on9097b572was red in three console served-page files (16 tests); this commit is the fix, above.turbo run type-checkfor@object-ui/components,@object-ui/app-shelland@object-ui/console, on this head: 0error TS.eslintover the changed files: 0 errors.overlap-check.mjson this head: clean against origin/main493ad095, fix(comments): Reply focuses the reply box, author avatars with initials, mention menu at the caret, delete toast #36105 and feat(spec): relatedLists is the record page's tab list, with built-in tabs by object name and per-entry title and columns #35923.Browser (showcase
objectstack dev --seed-admin --fresh, consolevite, zh-CN, the seeded pending request onEXP-2001, opened as its approver through/system/approvals?request=), before and after at 1280 and 375, light and dark, in the project thread's evidence folder:费用报告签批, no link; Rejectbg-destructive; timeline2026/11/21 10:09:5x.a02cb373, where the subject reads, so the gate added since draws the same page; with feat(record-page): two-row record header — navigation over the record, up to three actions #35983's two-row header: the crumb row reads 审批请求, the title row reads the record): H1EXP-2001, linked to/apps/com.example.showcase/showcase_expense_report/record/…; a click opensEXP-2001in the record drawer; Approve filled, Reject outlined; timeline2026/11/21 下午1:37, the same face as the strip's更新时间chip.Acceptance notes
ui/packages/components/src/renderers/layout/containers.tsx(hostTitle/chipTitle, both faces),ui/packages/app-shell/src/views/approval-decision/approvalSubjectTitle.tsxandrecordReadReport.ts(the link's read gate),ui/packages/app-shell/src/views/DeclaredActionsBar.tsx(secondaryDanger).更新时间value is cut (上午10:…) in a half-width cell. That is the strip's layout, outside this card.Human Minimum
packages/specholds no runtime logic.pnpm lintpasses.main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (Not touched.)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgW5RH2VUXjRj9dZYH2